/*
 * @ProjectName: 编程学习
 * @Copyright:   2019 HangZhou Yi Dev, Ltd. All Right Reserved.
 * @address:     https://yiyuery.github.io/
 * @date:        2019/5/20 20:57
 * @email:       xiazhaoyang@live.com
 * @description: 本内容仅限于编程技术学习使用，转发请注明出处.
 */
package com.example.template.pattern.factory.simple;

import com.example.template.pattern.factory.base.AbstractPhone;
import com.example.template.pattern.factory.base.SimplePhoneFactory;
import com.example.template.pattern.factory.base.phone.PhoneType;

/**
 * <p>
 *  苹果手机代理商，属于工厂的客户，通过工厂对象获取iPhone的实例。
 * </p>
 *
 * @author Yi
 * @version v1.0.0
 * @date 2019-08-11 15:06
 * @modificationHistory=========================逻辑或功能性重大变更记录
 * @modify By: {修改人} 2019-08-11
 * @modify reason: {方法名}:{原因}
 * ...
 */
public class SimpleIPhoneAgent {

    /**
     * 订购一个IPHONE
     * @return
     */
    public AbstractPhone orderPhone(){
        return SimplePhoneFactory.produce(PhoneType.PHONE_TYPE_IPHONE);
    }
}
